package com.jarvis.dubbo.spi;

import com.jarvis.dubbo.service.IHelloService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 示例
 *
 * @author jarvis create by 2020/9/16
 */
public class LoadBalanceSPIDemo {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("META-INF/spring-context.xml");
        IHelloService helloService = classPathXmlApplicationContext.getBean(IHelloService.class);
        System.out.println(helloService.sayHello("jarvis"));
    }
}
